#ifndef RFID_DETECT_H_
#define RFID_DETECT_H_

#include "driver/uart.h"

typedef struct {
    struct {
        uart_port_t port;
        uint32_t tx_pin;
        uint32_t rx_pin;
        uint32_t baud_rate;
    } uart;
}rfid_config_t;

typedef void * rfid_handle_t;

typedef void (*epc_cb_t)(uint8_t,const uint8_t *, uint8_t);

rfid_handle_t rfid_init(uint32_t period, const uint8_t *reader, uint8_t n, epc_cb_t epc_cb);
esp_err_t rfid_deinit(rfid_handle_t handle);

#endif /* RFID_DETECT_H_ */
